home *** CD-ROM | disk | FTP | other *** search
- /* Cyberlink BBS Lister v1.0 By Instigist (c)1994 */
-
- options results
- menuagain:
- cls
- print ""
- print " Cyberlink BBS Lister v1.0"
- print " Written By Instigist,"
- print " Snake Pit: (310)863-3754!"
- print " "
- print "A - Add A BBS To The List"
- print "L - View List of BBS"
- print "Q - Quit To Main Menu"
- print " "
-
- prompt 1 'NORMAL' 'Command : '
- ans = result
- if ans = '###PANIC' then call death
- if ans = 'a' | ans = 'A' then call writebbs
- if ans = 'l' | ans = 'L' then call readbbs
- if ans = 'q' | ans = 'Q' then call death
- call menuagain
-
- death:
- shutdown
- exit
-
- syntax:
- print "ERROR! Please Inform Sysop!"
- shutdown
- exit
-
- readbbs:
- print " Cyberlink BBS Lister v1.0"
- i = 0
- open(file1,'doors:bbslist','R')
- do until eof(file1)
- if i = 4 then call pauseit
- message1 = readln(file1)
- message2 = readln(file1)
- message3 = readln(file1)
- print "--------------------------------------------"
- print message1
- print message2
- print message3
- i = i + 1
- end
- itsdone:
- close(file1)
- print " "
- print " Press Any Key To Continue"
- getchar
- return
-
- pauseit:
- i = 0
- prompt 1 'YESNO' 'More (Y/n)? '
- ans = result
- if ans = 'n' | ans = 'N' then call itsdone
- return
-
- writebbs:
- print " "
- prompt 40 'NORMAL' 'BBS Name :'
- bbsname = result
- if bbsname = '###PANIC' then call death
- if bbsname = '' then call menuagain
- if bbsname = ' ' then call menuagain
- prompt 17 'NORMAL' 'Phone # :'
- bbsnumber = result
- if bbsnumber = '###PANIC' then call death
- if bbsnumber = '' then call menuagain
- if bbsnumber = ' ' then call menuagain
- print "You May Now Enter A 70 Character Comment About "bbsname
- prompt 70 'NORMAL' ':'
- bbscomment = result
- if bbscomment = '###PANIC' then call death
- if bbscomment = '' then call menuagain
- if bbscomment = ' ' then call menuagain
- open(file1,'doors:bbslist','A')
- writeln(file1,bbsname)
- writeln(file1,bbsnumber)
- writeln(file1,bbscomment)
- close(file1)
- print " "
- print "Thanks For You Support!"
- return
-
-